package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.DictionaryDetail;
import java.util.List;

public interface DictionaryDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DictionaryDetail record);

    DictionaryDetail selectByPrimaryKey(Long id);

    List<DictionaryDetail> selectAll();

    int updateByPrimaryKey(DictionaryDetail record);

    List<DictionaryDetail> selectDetialByDictionaryId(Long dictionaryId);

    /**
     * 根绝数据类型id 查询明细
     * @param dictionaryId
     * @return
     */
    List<DictionaryDetail> selectAllDetail(Long dictionaryId);

    /**
     * 根绝数据类型id 删除所有的明细
     * @param id
     */
    void deleteDetailByDictionaryId(Long id);
}